package com.zkx.laolaiyi.utils;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;

public class EncryptedLambdaQueryWrapper<T> extends LambdaQueryWrapper<T> {
    public EncryptedLambdaQueryWrapper<T> encryptedEq(SFunction<T, ?> column, String value) {
        String encryptedValue = EncryptUtil.autoEncryptStringField(value);
        super.eq(column, encryptedValue);
        return this;
    }
}
